package top.shiyiri.shops.dao;

import top.shiyiri.shops.bean.ProHotCateTop3;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author Aunean
 * @date 2021/12/21
 */
public interface ProHotCateTop3Dao {

    @Select("select * from pro_hot_cate_top3 limit #{begin}, #{size}")
    List<ProHotCateTop3> findProHotCateTop3(@Param("begin") int begin, @Param("size") int size);

    @Select("select count(*) from pro_hot_cate_top3")
    int totalLine();

    @Select("select * from pro_hot_cate_top3")
    List<ProHotCateTop3> findAllProHotCate();
}
